function mySetInterval(fn,time) {
    function interval() {
        setTimeout(interval, time);
        fn();
    }
    setTimeout(interval, time);
}